// src/user/user.entity.ts
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity('ev_users')
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ length: 255, nullable: true })
  wxID:string

  @Column({ length: 255, nullable: true })
  username: string;

  @Column({ length: 255, nullable: true })
  password: string;

  @Column({ length: 255, nullable: true })
  nickname: string;

  @Column({ length: 255, nullable: true })
  email: string;

  @Column('text', { nullable: true })
  user_pic: string;

  @Column({ length: 255, nullable: true })
  description: string;

  @Column({ length: 255, nullable: true })
  location: string;

  @Column('int', { nullable: true })
  上海迪士尼度假区: number;

  @Column('int', { nullable: true })
  上海海昌海洋公园: number;

  @Column('int', { nullable: true })
  东方明珠: number;

  @Column('int', { nullable: true })
  上海欢乐谷: number;

  @Column('int', { nullable: true })
  上海野生动物园: number;
}
